public class Duck implements Swimmable,Flyable {
    @Override
    public void fly() {
        System.out.println("duck can not fly");
    }

    @Override
    public void swim() {
        System.out.println("duck can swim");
    }
}
